﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class ExcepcionServ : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        _excepcion = new Exception();
        setExcepcion("Excepcion no definida");

    }
    public void setExcepcion(string cadena)
    {
        _excepcion.Message.Insert(0,cadena);
    }
    public string getExcepcion()
    {
        //return _excepcion.Message.ToString(); // casca
        return "Excepcion no definida";
    }
    public void Redireccion(string error)
    {
        _redireccion = error;
        Response.Redirect(_redireccion);
    }
    Exception _excepcion;
    private string _redireccion;
}
